package com.cy.server.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cy.server.vo.PageVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @peoject: yeb
 * @description: 角色数据传输类
 * @author: LiShaoZhuo
 * @create: 2021-04-30 10:56
 **/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class RoleDto extends PageVo implements Serializable {

    private static final long serialVersionUID = -1804528796033553714L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "角色名称")
    private String nameZh;
}
